package net.vkits.auth.application;

import net.vkits.auth.domain.model.Permission;
import net.vkits.auth.domain.repository.PermissionRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by ethan-liu on 16/3/27.
 */
@Service
public class PermissionApplicationService {
    private static final Logger logger = LoggerFactory.getLogger(PermissionApplicationService.class);

    @Resource
    private PermissionRepository permissionRepository;

    public List<Permission> getPermissions() {
        return permissionRepository.findAll();
    }
}
